
import request from '@/utils/request'

export function saveGoodsBatch(data) {
  return request({
    url: '/api/base/goods_batch/save',
    method: 'post',
    data
  })
}

export function listGoodsBatchBySingleGoodsId(data) {
  return request({
    url: '/api/base/goods_batch/list_by_single_goods_id',
    method: 'post',
    data
  })
}

export function listGoodsBatchByGoodsAndBatch(data) {
  return request({
    url: '/api/base/goods_batch/list_by_goods_and_batch',
    method: 'post',
    data
  })
}

export function listGoodsBatch(data) {
  return request({
    url: '/api/base/goods_batch/list',
    method: 'post',
    data
  })
}

export function pageGoodsBatch(data) {
  return request({
    url: '/api/base/goods_batch/page',
    method: 'post',
    data
  })
}

export function listPreOptions() {
  return request({
    url: '/api/base/goods_batch/list_pre_options',
    method: 'get'
  })
}

export function listBySingleGoodsCode(data) {
  return request({
    url: '/api/base/goods_batch/list_by_single_goods_code',
    method: 'post',
    data
  })
}